﻿#region Using directives

using System;
using System.Runtime.Serialization;

#endregion

namespace MCMLXVII.BackEnd.Services.OrganizationChart.Messages
{
    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class msgNewOrganizationTreeNode: msgSimpleNodeRequest 
    {

        private string _TempNodeName;
        public string TempNodeName
        {
            get
            {
                return _TempNodeName;
            }
            set
            {
                _TempNodeName = value;
            }

        }

        public msgNewOrganizationTreeNode(int FatherNodeID, string TempNodeName): base(FatherNodeID)
        {
            _TempNodeName = TempNodeName;
        }

        public msgNewOrganizationTreeNode()
        {

        }

    }

    [Serializable()]
    [System.Xml.Serialization.XmlType(Namespace = "http://tempuri.org/")]
    public class msgNewOrganizationTreeItemResponse
    {

        private int _NodeID;
        private int _UpdateSequence;

        public int NodeID
        {
            get {return _NodeID; }
            set {_NodeID=value; }
        }

        public int UpdateSequence
        {
            get { return _UpdateSequence; }
            set { _UpdateSequence = value; }
        }

        public msgNewOrganizationTreeItemResponse(int NodeID, int UpdateSequence)
        {
            _NodeID = NodeID;
            _UpdateSequence = UpdateSequence;
        }
        public msgNewOrganizationTreeItemResponse()
        {

        }

    }

}
